/******************************************************************* 
File name	:	bsp.h 
description:	
History	:
2011/07/2   created  by chengxiang 
*******************************************************************/

#ifndef	INCbsph
#define	INCbsph

#ifdef __cplusplus
    extern "C" {
#endif



#define BSP_DRIVER_DBG_MODE    			/*normal, turn off */

/* define bsp return value */

#define BSP_OK 	0

#define BSP_ERR_HARDWARE_VERSION	0x01
#define BSP_ERR_PARAMETER_INVALID	0x02
#define BSP_ERR_DEV_NOT_PRESENT		0x03
#define BSP_ERR_DEBUG_MODE			0x04

#define BSP_ERR_MEM_MALLOC			0x10
#define BSP_ERR_MEM_CALLOC	 		0x11
#define BSP_ERR_MEM_DMA_MALLOC		0x12
#define BSP_ERR_SEMB_CREATE			0x13
#define BSP_ERR_TASK_CREATE			0x14
#define BSP_ERR_MESSAGE_CREATE		0x15

#define BSP_ERR_OPEN_FILE			0x20
#define BSP_ERR_READ_FILE			0x21
#define BSP_ERR_WRITE_FILE			0x22


#define BSP_ERR_FLASH_ERASE			0x40
#define BSP_ERR_FLASH_WRITE			0x41
#define BSP_ERR_FLASH_FORMAT			0x42

#define BSP_ERR_CLK_NOT_LOCK			0x45
#define BSP_ERR_INFLATE_FAIL			0x46
#define BSP_ERR_RESETMODE_WRONG 	0x47
#define BSP_ERR_BRIC_REGISTER_RW  	0x48
#define BSP_WDT_ERR_CREATE 			0x49


/* Add by xueyulong */
#define BSP_I2C_OK 					0x00
#define BSP_I2C_ERROR 				0x50


#define BSP_ERR					          0xff

#define BSP_CPLD_ERR                             0xfe


 /*ftp error no*/
#define FTP_CON_ERR                   0x3c
#define FTP_SERVER_ERR              0x3d
#define FTP_IP_ERR                      0x41
#define FTP_PWD_ERR                  0x880212
#define FTP_FILE_ERR                  0x880226
 

#ifdef __cplusplus
    }
#endif

#endif

